package com.culture.bootdemo.model.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.culture.bootdemo.utils.CurrentTimeMillisClock;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author wen
 * @date 2019/11/15 14:51
 * @Description
 **/
@Data
public class ReadData {

    private Integer name;

    //格式化日期：
//   有时候下面不管用，这个比较好用 @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;

    private Double amount;

    private String phone;

    public static void main(String[] args) {
        long now = CurrentTimeMillisClock.getInstance().now();
        System.out.println(now);
    }

}
